﻿using Furion.DependencyInjection;
using Microsoft.AspNetCore.SignalR;
using PMP.Core.Extensions;

namespace PMP.Core.SignalR;

public class HubUserIdProvider : IUserIdProvider
{
    public string GetUserId(HubConnectionContext connection)
    {
        var userId = connection.User.GetUserId();
        return userId.ToString();
    }
}